package com.CST.run;

import com.CST.config.service.impl.*;
import org.slf4j.*;
import org.springframework.beans.factory.annotation.*;
import org.springframework.boot.*;
import org.springframework.stereotype.*;


/**
 * @author cc
 * @since 2020-01-13
 */
@Component
public class ApplicationRunnerImpl implements ApplicationRunner {

    private static final Logger logger = LoggerFactory.getLogger(ApplicationRunnerImpl.class);

    @Autowired
    private RedisServiceImpl redisService;

    @Override
    public void run(ApplicationArguments args) throws Exception {
	  logger.info("初始化redis数据");
	  //清除redis所有的key
//	  redisService.delAllKey();
    }
}
